package com.gs.thunder_manage.service;

import com.gs.thunder_manage.entity.*;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2018/1/3 0003
 */
//防雷检测机构信息子系统
@Service
public interface DAIService {

    //检测机构信息
    void addOrgInfo(DAIOrgInfo orgInfo);
    void updateOrgInfo(DAIOrgInfo orgInfo);
    void deleteOrgInfo(Integer id);
    List<DAIOrgInfo> getDAIOrgInfoWithPage(Integer pageNum,Integer pageSize);
    DAIOrgInfo getDAIOrgInfoById(Integer id);
    List<DAIOrgInfo> getDAIOrgInfoByNameWithPage(String name,Integer pageNum,Integer pageSize);

    //检测机构技术人员
    void addOrgPerson(DAIOrgPerson orgPerson);
    void updateOrgPerson(DAIOrgPerson orgPerson);
    void deleteOrgPerson(Integer id);
    List<DAIOrgPerson> getDAIOrgPersonByOrgIdWithPage(Integer OrgId,Integer pageNum,Integer pageSize);
    List<DAIOrgPerson> getDAIOrgPersonByOrgIdAndNameWithPage(Integer OrgId,String name,Integer pageNum,Integer pageSize);

    //资质变更记录
    void addOrgCredential(DAIOrgCredential orgCredential);
    void updateOrgCredential(DAIOrgCredential orgCredential);
    void deleteOrgCredential(Integer id);
    List<DAIOrgCredential> getDAIOrgCredentialByOrgIdWithPage(Integer OrgId,Integer pageNum,Integer pageSize);

    //从业信用情况记录
    void addOrgCredit(DAIOrgCredit orgCredit);
    void updateOrgCredit(DAIOrgCredit orgCredit);
    void deleteOrgCredit(DAIOrgCredit orgCredit);
    List<DAIOrgCredit> getDAIOrgCreditByOrgIdWithPage(Integer OrgId,Integer pageNum,Integer pageSize);

    //所检危险场所项目信息管理
    void addOrgDangerous(DAIOrgDangerous orgDangerous);
    void updateOrgDangerous(DAIOrgDangerous orgDangerous);
    void deleteOrgDangerous(Integer id);
    List<DAIOrgDangerous> getDAIOrgDangerousByOrgIdWithPage(Integer OrgId,Integer pageNum,Integer pageSize);



}
